/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import combinaciones.Problema;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.beans.PropertyVetoException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import optativa911.Coordinador;
import optativa911.GestorCoordinador;
import optativa911.Problema1;
import optativa911.Solicitante;
import optativa911.Validaciones;

/**
 *
 * @author INGENIERIA
 */
public class InterfazLlamadas extends javax.swing.JInternalFrame {
    DefaultTableModel modelousu = new DefaultTableModel();
    DefaultComboBoxModel modeloTipoCombo=new DefaultComboBoxModel();    
    DefaultListModel modeloTipos=new DefaultListModel();
    String apellido=null;
    String nombre=null;
    String cedula=null;
    String contrasenia=null;
    String tipo=null;
    Calendar Cal= Calendar.getInstance();
    Problema1 problema=new Problema1();
    ArrayList listaProb=new ArrayList();
  //  Usuarios usuarios=new Usuarios();
    Coordinador coordinador=new Coordinador();
    boolean operacion=false;
    ArrayList listausu=new ArrayList();
    ArrayList listatipo=new ArrayList();
    Object listaAtributos[]=new Object[5];
    ImageIcon ImgValido=new ImageIcon(getClass().getResource( "/Imagenes/CampoValido.jpg" ));
    ImageIcon ImgInvalido=new ImageIcon(getClass().getResource( "/Imagenes/CampoInvalido.jpg" ));
    mipanel bgrTitulo = new mipanel(821, 36,"/imagenes/title_panel1.jpg");
    Validaciones validacedula=new Validaciones();
        DefaultTableModel modeloproblema = new DefaultTableModel();
   // DefaultTableModel modeloingreso = new DefaultTableModel();
    
//    public Usuarios getUsuarios() {
//        return usuarios;
//    }
//
//    public void setUsuarios(Usuarios usuarios) {
//        this.usuarios = usuarios;
//    }

    public boolean isOperacion() {
        return operacion;
    }

    public void setOperacion(boolean operacion) {
        this.operacion = operacion;
    }
    /**
     * Creates new form IngresoProyecto
     */
    public InterfazLlamadas() {
        initComponents();
        pnlMensaje.setVisible(false);
        pnlIngresoFactura.setVisible(false);
        pnlMenu.setVisible(true);
        pnlModificacion.setVisible(true);
        tabla_problema.setModel(modelousu);
        modelousu.addColumn("id");
        modelousu.addColumn("cedula");
        modelousu.addColumn("direccion");
        modelousu.addColumn("descripcion");
        modelousu.addColumn("nivel");
        modelousu.addColumn("fecha");
        modelousu.addColumn("estado");
        jPanel1.add(bgrTitulo);
        jPanel1.repaint();
        //pnlMensaje.add(panelMensajeI);
        //pnlMensaje.repaint();
        //pnlMenu.add(panelMenuI);
        pnlMenu.repaint();
    }

    public void limpiar()
    {
        int tamanio= modelousu.getRowCount();
        for(int i=0;i<tamanio;i++)
        {
            modelousu.removeRow(0);
        }
    }
    
    

    public void agregarElementos()
    {
        limpiar();
        //System.out.println(getGestorp().getLista().size()+"");
        problema.listar();
        listausu=problema.getProblema();
        Iterator it = listausu.iterator();
        while (it.hasNext())
        {
            Problema1 u=(Problema1) it.next();
            //String nombretipo = u.buscarTipoUsuario();
            Object atributosTipo[]={u.getId(),u.getNombre(),u.getLugar(),u.getMotivo(),u.getNivel(),u.getFecha(),u.getEstado()};
            modelousu.addRow(atributosTipo);
            
        }
        System.out.println(pnlMenu.getWidth()+" a "+pnlMenu.getHeight());
        System.out.println("Numero:"+modelousu.getRowCount());
    }
    
//    public void agregarTipoUsuarioCombo()
//    {
//        modeloTipoCombo.removeAllElements();
//        tipousuarios.listar();
//        listatipo=tipousuarios.getTiposUsuarios();
//        Iterator it = listatipo.iterator();
//        while (it.hasNext())
//        {
//            GestorSolicitante t=(GestorSolicitante) it.next();
//            modeloTipoCombo.addElement(t.getNombre());
//        }
//        cmbTipo.setModel(modeloTipoCombo);    
//    }

//    public boolean Validar()
//    {
//        boolean cli=false;
//        if(valCed.getIcon().equals(ImgInvalido) || valNom.getIcon().equals(ImgInvalido) || valApe.getIcon().equals(ImgInvalido) || valDir.getIcon().equals(ImgInvalido))
//        {
//            cli=false;
//        }
//        else
//        {
//            cli=true;
//        }
//        return cli;
//    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlMensaje = new javax.swing.JPanel();
        lblMensaje = new javax.swing.JLabel();
        btnCerrarMensaje = new javax.swing.JButton();
        lblVerificar = new javax.swing.JLabel();
        pnlMenu = new javax.swing.JPanel();
        btnIngresar = new javax.swing.JButton();
        pnlModificacion = new javax.swing.JPanel();
        pnlGrilla = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tabla_problema = new javax.swing.JTable();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        pnlIngresoFactura = new javax.swing.JPanel();
        txtDireccion = new javax.swing.JTextField();
        lblPorcentajeAvance1 = new javax.swing.JLabel();
        lblProyecto = new javax.swing.JLabel();
        lblCodigo1 = new javax.swing.JLabel();
        txtCedula = new javax.swing.JTextField();
        btnNuevo = new javax.swing.JButton();
        btnGrabar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        cmbEstado = new javax.swing.JComboBox();
        valcmbCli = new javax.swing.JLabel();
        valDir = new javax.swing.JLabel();
        lblLibro = new javax.swing.JLabel();
        cmbProblema = new javax.swing.JComboBox();
        valcmbPro = new javax.swing.JLabel();
        valNum = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        txtDescripcion = new javax.swing.JTextField();
        valDes = new javax.swing.JLabel();

        setBackground(new java.awt.Color(250, 249, 242));
        setBorder(null);
        setForeground(new java.awt.Color(255, 255, 102));

        pnlMensaje.setBackground(new java.awt.Color(250, 247, 247));
        pnlMensaje.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        lblMensaje.setBackground(new java.awt.Color(250, 247, 247));

        btnCerrarMensaje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cerrar.jpg"))); // NOI18N
        btnCerrarMensaje.setToolTipText("Cerrar Mensaje");
        btnCerrarMensaje.setBorder(null);
        btnCerrarMensaje.setOpaque(false);
        btnCerrarMensaje.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarMensajeActionPerformed(evt);
            }
        });

        lblVerificar.setAutoscrolls(true);

        javax.swing.GroupLayout pnlMensajeLayout = new javax.swing.GroupLayout(pnlMensaje);
        pnlMensaje.setLayout(pnlMensajeLayout);
        pnlMensajeLayout.setHorizontalGroup(
            pnlMensajeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlMensajeLayout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .addComponent(lblMensaje, javax.swing.GroupLayout.PREFERRED_SIZE, 393, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblVerificar, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(11, 11, 11)
                .addComponent(btnCerrarMensaje))
        );
        pnlMensajeLayout.setVerticalGroup(
            pnlMensajeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlMensajeLayout.createSequentialGroup()
                .addGroup(pnlMensajeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblMensaje, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblVerificar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnCerrarMensaje, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap())
        );

        pnlMenu.setBackground(new java.awt.Color(250, 247, 247));
        pnlMenu.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        pnlMenu.setPreferredSize(new java.awt.Dimension(490, 44));

        btnIngresar.setBackground(new java.awt.Color(250, 247, 247));
        btnIngresar.setForeground(new java.awt.Color(255, 255, 255));
        btnIngresar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cmd_ingresar.jpg"))); // NOI18N
        btnIngresar.setBorder(null);
        btnIngresar.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnIngresar.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
        btnIngresar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnIngresarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlMenuLayout = new javax.swing.GroupLayout(pnlMenu);
        pnlMenu.setLayout(pnlMenuLayout);
        pnlMenuLayout.setHorizontalGroup(
            pnlMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlMenuLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnIngresar)
                .addGap(178, 178, 178))
        );
        pnlMenuLayout.setVerticalGroup(
            pnlMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlMenuLayout.createSequentialGroup()
                .addComponent(btnIngresar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlModificacion.setBackground(new java.awt.Color(250, 247, 247));
        pnlModificacion.setBorder(javax.swing.BorderFactory.createTitledBorder("Lista De Coordinadores"));

        pnlGrilla.setBackground(new java.awt.Color(250, 247, 247));

        tabla_problema.setAutoCreateRowSorter(true);
        tabla_problema.setBackground(new java.awt.Color(250, 249, 242));
        tabla_problema.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        tabla_problema.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "Estado", "Cedula solicitante", "fecha", "Grado del problema", "Direccion", "Descripcion"
            }
        ));
        tabla_problema.setColumnSelectionAllowed(true);
        tabla_problema.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        tabla_problema.setGridColor(new java.awt.Color(51, 51, 51));
        tabla_problema.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tabla_problemaMouseClicked(evt);
            }
        });
        tabla_problema.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                tabla_problemaInputMethodTextChanged(evt);
            }
        });
        tabla_problema.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                tabla_problemaPropertyChange(evt);
            }
        });
        tabla_problema.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                tabla_problemaKeyPressed(evt);
            }
            public void keyReleased(java.awt.event.KeyEvent evt) {
                tabla_problemaKeyReleased(evt);
            }
        });
        jScrollPane2.setViewportView(tabla_problema);

        javax.swing.GroupLayout pnlGrillaLayout = new javax.swing.GroupLayout(pnlGrilla);
        pnlGrilla.setLayout(pnlGrillaLayout);
        pnlGrillaLayout.setHorizontalGroup(
            pnlGrillaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
        );
        pnlGrillaLayout.setVerticalGroup(
            pnlGrillaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlGrillaLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(28, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnlModificacionLayout = new javax.swing.GroupLayout(pnlModificacion);
        pnlModificacion.setLayout(pnlModificacionLayout);
        pnlModificacionLayout.setHorizontalGroup(
            pnlModificacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlModificacionLayout.createSequentialGroup()
                .addComponent(pnlGrilla, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(30, Short.MAX_VALUE))
        );
        pnlModificacionLayout.setVerticalGroup(
            pnlModificacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlGrilla, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jPanel1.setBackground(new java.awt.Color(250, 249, 242));

        jLabel1.setText("COORDINADOR: Ingreso Modificación Eliminación");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlIngresoFactura.setBackground(new java.awt.Color(250, 247, 247));
        pnlIngresoFactura.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(""), "Ingreso De Problema"));

        txtDireccion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDireccionActionPerformed(evt);
            }
        });
        txtDireccion.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtDireccionFocusLost(evt);
            }
        });

        lblPorcentajeAvance1.setText("Direccion:");

        lblProyecto.setText("Estado:");

        lblCodigo1.setText("Cedula Solicitante:");

        txtCedula.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtCedulaActionPerformed(evt);
            }
        });
        txtCedula.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtCedulaFocusLost(evt);
            }
        });

        btnNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cmd_nuevo.jpg"))); // NOI18N
        btnNuevo.setBorder(null);
        btnNuevo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoActionPerformed(evt);
            }
        });

        btnGrabar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cmd_grabar.jpg"))); // NOI18N
        btnGrabar.setBorder(null);
        btnGrabar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnGrabarMouseClicked(evt);
            }
        });
        btnGrabar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGrabarActionPerformed(evt);
            }
        });

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/cmd_cancel.jpg"))); // NOI18N
        btnCancelar.setBorder(null);
        btnCancelar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnCancelarMouseClicked(evt);
            }
        });
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        cmbEstado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "propuesto", "aprobado", "incorporado" }));
        cmbEstado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbEstadoActionPerformed(evt);
            }
        });

        valcmbCli.setBackground(new java.awt.Color(250, 247, 247));
        valcmbCli.setOpaque(true);

        valDir.setBackground(new java.awt.Color(250, 247, 247));
        valDir.setOpaque(true);

        lblLibro.setText("Grado del problema:");

        cmbProblema.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "leve", "regular", "grave" }));
        cmbProblema.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbProblemaActionPerformed(evt);
            }
        });
        cmbProblema.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                cmbProblemaFocusLost(evt);
            }
        });

        valcmbPro.setBackground(new java.awt.Color(250, 247, 247));
        valcmbPro.setOpaque(true);

        valNum.setBackground(new java.awt.Color(250, 247, 247));
        valNum.setOpaque(true);

        jLabel2.setText("Descripcion:");

        valDes.setBackground(new java.awt.Color(250, 247, 247));
        valDes.setOpaque(true);

        javax.swing.GroupLayout pnlIngresoFacturaLayout = new javax.swing.GroupLayout(pnlIngresoFactura);
        pnlIngresoFactura.setLayout(pnlIngresoFacturaLayout);
        pnlIngresoFacturaLayout.setHorizontalGroup(
            pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                .addContainerGap(87, Short.MAX_VALUE)
                .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblProyecto)
                            .addComponent(lblCodigo1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtCedula, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cmbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                        .addComponent(btnNuevo)
                        .addGap(18, 18, 18)
                        .addComponent(btnGrabar)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(valcmbCli, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(valNum, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                                .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblPorcentajeAvance1)
                                    .addComponent(lblLibro))
                                .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                                        .addGap(18, 18, 18)
                                        .addComponent(cmbProblema, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngresoFacturaLayout.createSequentialGroup()
                                        .addGap(9, 9, 9)
                                        .addComponent(txtDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addGap(48, 48, 48)
                                .addComponent(txtDescripcion)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(valcmbPro, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(valDir, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(valDes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())
                    .addComponent(btnCancelar)))
        );
        pnlIngresoFacturaLayout.setVerticalGroup(
            pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlIngresoFacturaLayout.createSequentialGroup()
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(valcmbCli, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(cmbEstado)
                                .addComponent(lblProyecto)))
                        .addGap(18, 18, 18)
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(lblCodigo1)
                            .addComponent(txtCedula)
                            .addComponent(valNum, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnCancelar, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnNuevo, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnGrabar, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addGap(166, 166, 166))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngresoFacturaLayout.createSequentialGroup()
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(lblLibro)
                                .addComponent(cmbProblema, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(valcmbPro, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(valDir, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtDireccion, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblPorcentajeAvance1, javax.swing.GroupLayout.Alignment.LEADING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlIngresoFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel2)
                                .addComponent(txtDescripcion))
                            .addComponent(valDes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(262, 262, 262))))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 60, Short.MAX_VALUE)
                .addComponent(pnlModificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(213, 213, 213))
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(161, 161, 161)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(pnlMenu, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
                            .addComponent(pnlMensaje, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(31, 31, 31)
                        .addComponent(pnlIngresoFactura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pnlMensaje, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pnlMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(15, 15, 15)
                .addComponent(pnlIngresoFactura, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(pnlModificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCerrarMensajeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarMensajeActionPerformed
        // TODO add your handling code here:
        lblMensaje.setText("");
        pnlMensaje.setVisible(false);

    }//GEN-LAST:event_btnCerrarMensajeActionPerformed

    private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnIngresarActionPerformed
        // TODO add your handling code here:
        operacion=false;
        pnlIngresoFactura.setVisible(true);
        pnlMenu.setVisible(false);
        pnlModificacion.setVisible(false);
        txtCedula.setEditable(true);
//        agregarTipoUsuarioCombo();
//        cmbTipo.setSelectedIndex(-1);
        valDir.setIcon(ImgInvalido);
        valNum.setIcon(ImgInvalido);
        valcmbPro.setIcon(ImgInvalido);
        valDes.setIcon(ImgInvalido);
        valcmbCli.setIcon(ImgInvalido);
        txtCedula.requestFocus();
        

    }//GEN-LAST:event_btnIngresarActionPerformed

    private void txtDireccionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDireccionActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDireccionActionPerformed

    private void txtDireccionFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtDireccionFocusLost
        // TODO add your handling code here:
        try{
            String.valueOf(txtDireccion.getText());
            valDir.setIcon(ImgValido);
        } catch (Exception ex)
        {
            valDir.setIcon(ImgInvalido);
        }
    }//GEN-LAST:event_txtDireccionFocusLost

    private void txtCedulaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtCedulaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtCedulaActionPerformed

    private void txtCedulaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtCedulaFocusLost
        // TODO add your handling code here:
        try{
            Double.parseDouble(txtCedula.getText());
            valNum.setIcon(ImgValido);
        } catch (Exception ex)
        {
            valNum.setIcon(ImgInvalido);
        }
    }//GEN-LAST:event_txtCedulaFocusLost

//    public void limpiaringreso()
//    {
//        int tamaño= modeloingreso.getRowCount();
//        for(int i=0;i<tamaño;i++)
//        {
//            modeloingreso.removeRow(0);
//        }
//    }
    private void btnNuevoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoActionPerformed
        // TODO add your handling code here:
      //  limpiaringreso();
        String fecha="";
        cmbEstado.setSelectedIndex(-1);
        txtCedula.setText(null);
        txtDireccion.setText(null);
        cmbProblema.setSelectedIndex(-1);
        fecha= Cal.get(Cal.YEAR)+"/"+(Cal.get(Cal.MONTH)+1)+"/"+Cal.get(Cal.DATE);
        valcmbCli.setIcon(ImgInvalido);
        valDir.setIcon(ImgInvalido);
        valNum.setIcon(ImgInvalido);
        valcmbPro.setIcon(ImgInvalido);
    }//GEN-LAST:event_btnNuevoActionPerformed

    private void btnGrabarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGrabarActionPerformed
        // TODO add your handling code here:
        //       if (Validar()==true){
            //            cedulaSolicitante= this.txtCedula.getText();
            //            String estado= (String) this.cmbEstado.getSelectedItem();
            //            String nivel= (String) this.cmbProblema.getSelectedItem();
            //            numero = Integer.parseInt(this.txtCedula.getText());
            //            Calendar Cal= Calendar.getInstance();
            //            String fechahora;
            //            fechahora= Cal.get(Cal.DATE)+"/"+(Cal.get(Cal.MONTH)+1)+"/"+Cal.get(Cal.YEAR)+" "+Cal.get(Cal.HOUR_OF_DAY)+":"+Cal.get(Cal.MINUTE)+":"+Cal.get(Cal.SECOND);
            //            solicitante.setCedula(cedulaSolicitante);
            //            solicitante.buscar();
            //
            //            if (operacion == false) {
                //                problema.setId("1");
                //                problema.setFecha(fecha);
                //                problema.setEstado(estado);
                //                problema.setLugar(this.txtDireccion.getText());
                //                problema.setMotivo(this.txtDescripcion.getText());
                //                problema.setNivel(nivel);
                //                problema.setNombre(solicitante.getNombre());
                //                problema.buscar();
                ////                listaSolicitanteProblema=problema.getProductos();
                ////                listaProblemas=problema.getCantidades();
                //                for (int i=0;i<listaSolicitanteProblema.size();i++)
                //                {
                    ////                    Producto c=(Producto) listaSolicitanteProblema.get(i);
                    //                    int cantidad= Integer.parseInt(listaProblemas.get(i)+"");
                    ////                    problema.asignarrelacion(c, cantidad);
                    //                }
                ////                problema.borrar();
                //                lblMensaje.setText("Factura guardado Satisfactoriamente");
                //            } else {
                ////                problema.modificar();
                //                lblMensaje.setText("Factura Modificada Satisfactoriamente");
                //                btnCancelarActionPerformed(evt);
                //            }
            //            lblVerificar.setIcon(new ImageIcon( getClass().getResource( "/Imagenes/bien.jpg" )));
            //
            //
            //        } else{
            //
            //            if(operacion==false) {
                //                lblMensaje.setText("Error: No se pudo guardar la Ciudad");
                //            } else {
                //                lblMensaje.setText("Error: No se pudo modificar la Ciudad");
                //            }
            //            lblVerificar.setIcon(new ImageIcon( getClass().getResource( "/Imagenes/Error.jpg" )));
            //        }
        //        pnlMensaje.setVisible(true);

        int val=0;
        Calendar Cal= Calendar.getInstance();
        Solicitante solicitante=new Solicitante();
        String fechahora;
        Problema1 p=new Problema1();
        if (valcmbPro.getIcon().equals(ImgValido) && valDir.getIcon().equals(ImgValido))
        {
            if(solicitante.buscar(this.txtCedula.getText())==0)
            {
                fechahora= Cal.get(Cal.DATE)+"/"+(Cal.get(Cal.MONTH)+1)+"/"+Cal.get(Cal.YEAR)+" "+Cal.get(Cal.HOUR_OF_DAY)+":"+Cal.get(Cal.MINUTE)+":"+Cal.get(Cal.SECOND);
                // String pro= (String) cmbProblema.getSelectedItem();
                // p.setNombre(pro);
                String cedula=txtCedula.getText();
                solicitante.buscar(cedula);
                String direccion=txtDireccion.getText();
                String descripcion=txtDescripcion.getText();
                String est=(String)this.cmbEstado.getSelectedItem();
                System.out.println("valorrrr"+est);
                int grado=this.cmbProblema.getSelectedIndex()+1;
                p.setEstado(est);
                p.setFecha(fechahora);
                p.setLugar(direccion);
                p.setMotivo(descripcion);
                p.setNivel(String.valueOf(grado));
                p.setNombre(cedula);
                p.setId("");
                p.grabar(solicitante);

            }
            else{
                JOptionPane.showMessageDialog(this, "El usuario no e encuentra.!!! INGRESE EL USUARIO");
                val=1;
            }
        }

    }//GEN-LAST:event_btnGrabarActionPerformed

    private void btnCancelarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCancelarMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_btnCancelarMouseClicked

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
        // TODO add your handling code here:
       
        
        pnlIngresoFactura.setVisible(false);
        agregarElementos();
        btnNuevoActionPerformed(evt);
        pnlModificacion.setVisible(true);
        pnlMenu.setVisible(true);
    }//GEN-LAST:event_btnCancelarActionPerformed

    private void cmbEstadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbEstadoActionPerformed
        // TODO add your handling code here:
        if (operacion==false && cmbEstado.getSelectedIndex()!=-1){
            txtCedula.setEditable(true);
            valcmbCli.setIcon(ImgValido);
        }
        else if(operacion == true && cmbEstado.getSelectedIndex() != -1)
        {
            cmbEstado.setEnabled(false);
            txtCedula.setEditable(true);
            valcmbCli.setIcon(ImgValido);
        }
        else
        {
            valcmbCli.setIcon(ImgInvalido);
        }

    }//GEN-LAST:event_cmbEstadoActionPerformed

    private void cmbProblemaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbProblemaActionPerformed
        // TODO add your handling code here:
        if (operacion==false && cmbProblema.getSelectedIndex()!=-1){
            txtDireccion.setEditable(true);
            valcmbPro.setIcon(ImgValido);
        }
        else
        {
            valcmbPro.setIcon(ImgInvalido);
        }
    }//GEN-LAST:event_cmbProblemaActionPerformed

    private void cmbProblemaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_cmbProblemaFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_cmbProblemaFocusLost

    private void tabla_problemaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tabla_problemaMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_tabla_problemaMouseClicked

    private void tabla_problemaInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_tabla_problemaInputMethodTextChanged
        // TODO add your handling code here:
    }//GEN-LAST:event_tabla_problemaInputMethodTextChanged

    private void tabla_problemaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_tabla_problemaPropertyChange
        // TODO add your handling code here:
    }//GEN-LAST:event_tabla_problemaPropertyChange

    private void tabla_problemaKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tabla_problemaKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_tabla_problemaKeyPressed

    private void tabla_problemaKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tabla_problemaKeyReleased
        // TODO add your handling code here:
    }//GEN-LAST:event_tabla_problemaKeyReleased

    private void btnGrabarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnGrabarMouseClicked
         int val=0;
        Calendar Cal= Calendar.getInstance();
        Solicitante solicitante=new Solicitante();
        String fechahora;
        Problema1 p=new Problema1();
        if (valcmbPro.getIcon().equals(ImgValido) && valDir.getIcon().equals(ImgValido))
        {
            if(solicitante.buscar(this.txtCedula.getText())==0)
            {
                fechahora= Cal.get(Cal.DATE)+"/"+(Cal.get(Cal.MONTH)+1)+"/"+Cal.get(Cal.YEAR)+" "+Cal.get(Cal.HOUR_OF_DAY)+":"+Cal.get(Cal.MINUTE)+":"+Cal.get(Cal.SECOND);
                // String pro= (String) cmbProblema.getSelectedItem();
                // p.setNombre(pro);
                String cedula=txtCedula.getText();
                solicitante.buscar(cedula);
                String direccion=txtDireccion.getText();
                String descripcion=txtDescripcion.getText();
                String est=(String)this.cmbEstado.getSelectedItem();
                System.out.println("valorrrr"+est);
                int grado=this.cmbProblema.getSelectedIndex()+1;
                p.setEstado(est);
                p.setFecha(fechahora);
                p.setLugar(direccion);
                p.setMotivo(descripcion);
                p.setNivel(String.valueOf(grado));
                p.setNombre(cedula);
                p.setId("");
                p.grabar(solicitante);

            }
            else{
                JOptionPane.showMessageDialog(this, "El usuario no e encuentra.!!! INGRESE EL USUARIO");
                val=1;
            }
        }
    }//GEN-LAST:event_btnGrabarMouseClicked

    public class mipanel extends javax.swing.JPanel {
        String ruta;
        public mipanel(int ancho, int alto, String ruta){
            this.setSize(ancho,alto);
            this.ruta=ruta;           
        }

        @Override
        public void paint(Graphics g){
            
            Dimension tamanio = getSize();
            ImageIcon imagenFondo = new ImageIcon(getClass().getResource(ruta));
            g.drawImage(imagenFondo.getImage(),0,0,tamanio.width, tamanio.height, null);
            setOpaque(false);
            super.paintComponent(g);

        }
        
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnCerrarMensaje;
    private javax.swing.JButton btnGrabar;
    private javax.swing.JButton btnIngresar;
    private javax.swing.JButton btnNuevo;
    private javax.swing.JComboBox cmbEstado;
    private javax.swing.JComboBox cmbProblema;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblCodigo1;
    private javax.swing.JLabel lblLibro;
    private javax.swing.JLabel lblMensaje;
    private javax.swing.JLabel lblPorcentajeAvance1;
    private javax.swing.JLabel lblProyecto;
    private javax.swing.JLabel lblVerificar;
    private javax.swing.JPanel pnlGrilla;
    private javax.swing.JPanel pnlIngresoFactura;
    private javax.swing.JPanel pnlMensaje;
    private javax.swing.JPanel pnlMenu;
    private javax.swing.JPanel pnlModificacion;
    private javax.swing.JTable tabla_problema;
    private javax.swing.JTextField txtCedula;
    private javax.swing.JTextField txtDescripcion;
    private javax.swing.JTextField txtDireccion;
    private javax.swing.JLabel valDes;
    private javax.swing.JLabel valDir;
    private javax.swing.JLabel valNum;
    private javax.swing.JLabel valcmbCli;
    private javax.swing.JLabel valcmbPro;
    // End of variables declaration//GEN-END:variables
}


